package com.itheima.web;

import com.itheima.entity.Result;
import com.itheima.service.OrderService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : SuperHandsome
 * @date : create in 2020/11/22 14:02
 * @Description：
 */
@RestController
public class OrderController {

    @Reference
    private OrderService orderService;

    @GetMapping("/order/findsetmeal")
    @PreAuthorize("hasAuthority('search_setmealerts')")
    public Result findsetmeal(){
        return new Result(orderService.findsetmeal());
    }
}
